<?php

namespace App\Exceptions;

use App\Enums\ResponseCode;
use Exception;

class ApiExceptions extends Exception
{
    public function __construct($message,$code=ResponseCode::UNPROCESSABLE_ENTITY)
    {
        parent::__construct(trans($message),$code);
    }
}
